import time 
def st(a):
    f = open(a + '.txt')
    sp = [int(el.strip()) for el in f.readlines()]
    f.close()
    s = time. time()
    for i in range(Len(sp) - 1):
         for j in range(len(sp)- 1 - i):
            if sp[j] > sp[j + 1]:
                sp[j], sp[j + 1] = sp[j + 1], sp[j]         
    f = time. time()
    t = round（（f - s） * 1000)
    print (a, t,'milliseconds')
st('m1_sorted')
st ('m2_reverse')
st('m3_shuffle')